package com.xiyu.service.enums.mailbox.mail;

import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 邮件状态
*/
@Getter
@AllArgsConstructor
public enum MailboxMailStatusEnum implements IntArrayValuable {

    /**
    * 已收件
    */
    RECEIVED(1, "已收件"),
    /**
    * 已发送
    */
    SEND(2, "已发送"),
    /**
    * 草稿
    */
    DRAFT(3, "草稿"),
    /**
    * 垃圾
    */
    JUNK(4, "垃圾"),
    /**
    * 已删除
    */
    DELETED(5, "已删除");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(MailboxMailStatusEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(MailboxMailStatusEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
